//
//  JobModel.h
//  BaseProject
//
//  Created by 王洋 on 2021/4/21.
//  Copyright © 2021 王洋. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HomeADItemEventModel.h"

NS_ASSUME_NONNULL_BEGIN
//激活状态
typedef NS_ENUM(NSInteger, JobActivationType) {
    //未设置
    JobActivationType_none,
    //等待激活
    JobActivationType_wait,
    //已激活
    JobActivationType_finish
};

//触发状态
typedef NS_ENUM(NSInteger, JobTriggerType) {
    //未设置
    JobTriggerType_none,
    //等待触发
    JobTriggerType_wait,
    //已触发
    JobTriggerType_finish
};

//触发状态
typedef NS_ENUM(NSInteger, BA_JobManagerType) {
    //锦鲤活动跳转：活动页下单后设立任务，返回时注销任务，选定商品付款后触发
    BA_JobManagerType_JLAct,
};

@interface JobModel : NSObject

//标识ID   用于job在流程中的识别
@property (nonatomic, copy) NSString *tagID;
//job类型   注意，正常情况下，jobType在array中是独立存在的
@property (nonatomic, assign) BA_JobManagerType jobType;
//事件激活状态
@property (nonatomic, assign) JobActivationType activationState;
//事件触发状态
@property (nonatomic, assign) JobTriggerType triggerState;
//事件内容
@property (nonatomic, strong) HomeADItemEventModel *actionModel;

@end

NS_ASSUME_NONNULL_END
